package com.dong.settlement.dao;


import com.dong.settlement.po.SettlementPO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SettlementDao {

    @Insert("insert into settlement (order_id,transaction_id,status,amount,date) values (#{orderId},#{transactionId},#{status},#{amount},#{date})")
    @Options(useGeneratedKeys = true,keyProperty = "id")
    void insert(SettlementPO settlementPO);
}
